package com.amigo.online.provider.user.model.entity;

import javax.persistence.Column;
import javax.persistence.Table;

import org.apache.ibatis.type.Alias;

import com.amigo.online.common.base.entity.BaseEntity;

@Table(name = "invite_code_tbl")
@Alias(value = "inviteCode")
public class InviteCode extends BaseEntity {

    private static final long serialVersionUID = -7088655242836451966L;

    @Column(name = "user_id")
    private Long userId;

    /**
     * 邀请码
     */
    @Column(name = "code")
    private String code;

    @Column(name = "updated_time")
    private Long updatedTime;

    /**
     * 0未删除，1删除
     */
    @Column(name = "deleted")
    private Integer deleted;

    @Column(name = "deleted_time")
    private Long deletedTime;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Long getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Long updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Long getDeletedTime() {
        return deletedTime;
    }

    public void setDeletedTime(Long deletedTime) {
        this.deletedTime = deletedTime;
    }


}
